nums = [10, 20, 30, 40, 50]
nums1 = []
for i in nums:
    num = i + 10
    nums1.append(num)
nums = nums1
print(nums)
print('------------')

nums = [10, 20, 30, 40, 50]
for i in range(len(nums)):
    nums[i] += 10
print(nums)

# 已知列表: list1 = [12,2,34,13,55,99,75] 求出元素中的最大值.# 除了max()以外.尝试自己实现循环遍历对比出最大值.
list1 = [12, 2, 34, 13, 55, 99, 75]
max_value = list1[0]
for num in list1:
    if num > max_value:
        max_value = num
print("列表中的最大值是:", max_value)